<?php 
class Default_UserController extends QHO_Controller_Action
{
	public function init()
	{
		parent::init();	
		//Get base url
		$this->view->baseUrl = $this->_request->getBaseUrl();
	}	
	
	/**
	*  REGISER MEMBER
	*/
	public function registerAction()
	{
		if( $this->_request->isPost() )
		{
			//New object
			$user = new Default_Model_User;
			//Get input
			$data = array(
				"user_email" => "".$this->_request->getPost("user_email")."",
				"user_address" => "".$this->_request->getPost("user_address")."",
				"user_phone" => "".$this->_request->getPost("user_phone")."",
				"user_password" => "".$this->_request->getPost("user_password").""
			);	
			//Call add user function
			$user->addUser($data);
		}
	}
}
